package com.endpoint.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户书架表
 * </p>
 *
 * @author liusp
 * @since 2025-06-21
 */
@TableName("member_bookshelf")
public class MemberBookshelf implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 会员ID
     */
    private Long memberId;

    /**
     * 小说ID
     */
    private Long bookId;

    /**
     * 上一次阅读的章节ID
     */
    private Long preIndexId;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public Long getPreIndexId() {
        return preIndexId;
    }

    public void setPreIndexId(Long preIndexId) {
        this.preIndexId = preIndexId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "MemberBookshelf{" +
        "id=" + id +
        ", memberId=" + memberId +
        ", bookId=" + bookId +
        ", preIndexId=" + preIndexId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
